{include file="header.html"} 
<script language="javascript" src="/plugin/My97DatePicker/WdatePicker.js"></script>
<div class="row">
  <div class="span12"> {include file="shop_order/nav.html"}
    <form method="get" action="{$appadmin}">
      <input type="hidden" name="m" value="shop_order" />
      <input type="hidden" name="a" value="default" />
      <div class="mgb-10" > 订单号：
        <input type="text" name="orderno" value="{$smarty.get.orderno}" />
        用户：
        <input type="text" name="nickname" value="{$smarty.get.nickname}" class="w100" />
        状态：
        <select name="s_status" class="w100">
          <option value="-1">请选择</option>
          
{foreach item=c key=k from=$order_status_list}
{if $k lt 99}
          <option value="{$k}" {if $smarty.get.s_status eq $k} selected="selected" {/if}>{$c}</option>
          {/if}
{/foreach}

        </select>
        支付：
        <select name="s_ispay" class="w100">
          <option value="-1">请选择</option>
          
{foreach item=c key=k from=$order_ispay} 

          <option value="{$k}" {if $smarty.get.s_ispay eq $k} selected="selected"{/if}>{$c}</option>
          
{/foreach}

        </select>
      </div>
      <div class="mgb-10" >
      开始时间：
      <input type="text" name="start_time" value="{$smarty.get.start_time}"  onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
      结束时间：
      <input type="text" name="end_time" value="{$smarty.get.end_time}"   onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
      <input type="submit" value="搜索" class="btn btn-warning" />
      <div class="rscount">总计：<span class="num">{$rscount}</span>个订单，总金额：￥<span class="num">{$total_money}</span>元，本页金额：￥<span class="num">{$page_total_money}</span></div>
      <div class="clearfix">
        </di
>
      </div>
    </form>
    <table width="100%" class="table table-bordered">
      <tr>
        <td>ID</td>
        <td>订单号</td>
        <td>联系方式</td>
        <td>下单时间</td>
        <td>支付状况</td>
        <td>所在店铺</td>
        <td>价格</td>
        <td>状态</td>
        <td>操作</td>
      </tr>
      {foreach item=c from=$data}
      <tr>
        <td>{$c.order_id}</td>
        <td>{$c.orderno}</td>
        <td>{$c[address].truename}<br>
          {$c[address].telephone} </td>
        <td>{$c.dateline|date:m-d H:i}</td>
        <td>{$order_ispay[$c.ispay]}</td>
        <td>{$c.shop_name}</td>
        <td>{$c.money}</td>
        <td>{$order_status_list[$c.status]} {$c.whocancel}</td>
        <td><a href="{$appadmin}?m=shop_order&a=show&order_id={$c.order_id}">查看</a></td>
      </tr>
      {/foreach}
    </table>
    {$pagelist} </div>
</div>
{include file="footer.html"}